﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace logic
{
    public class complaintType
    {
        /// <summary>
        /// 根据parentid得到投诉类别
        /// </summary>
        /// <param name="parentid"></param>
        /// <returns></returns>
        public static DataTable getByParentId(int parentid)
        {
            return ComplaintType.getByParentId(parentid);
        }

        /// <summary>
        /// 根据ctId得到对应的投诉类别
        /// </summary>
        /// <param name="ctId"></param>
        /// <returns></returns>
        public static ComplaintTypeEntity getById(int ctId)
        {
            return ComplaintType.getById(ctId);
        }
    }
}
